<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>用户增加</title>
</head>
<body>
<section>
<div class="right">
    <div class="location">
        <strong>你现在所在的位置是:</strong>
        <span>用户管理页面 >> 用户添加页面</span>
    </div>
    <div class="userAdd">
        <form id="userForm" name="userForm" method="post" action="${pageContext.request.contextPath }/jsp/user.do">
            <input type="hidden" name="method" value="add">
            <!--div的class 为error是验证错误，ok是验证成功-->
            <div class="info">${error}</div>
            <div>
                <label for="name">用户编号:</label>
                <input type="text" name="code" id="code" value="" placeholder="请输入用户编号" required>
                <!-- 放置提示信息 -->
                <font color="red"></font>
            </div>
            <div>
                <label for="name">用户名称:</label>
                <input type="text" name="name" id="name" value="" placeholder="请输入用户名" required>
                <!-- 放置提示信息 -->
                <font color="red"></font>
            </div>
            <div>
                <label for="Password">用户密码:</label>
                <input type="password" name="password" id="password" value="" placeholder="请输入密码" required>
                <font color="red"></font>
            </div>
            <div>
                <label for="grade">用户等级:</label>
                <input type="text" name="grade" id="grade" value="" placeholder="请输入等级" required>
                <font color="red"></font>
            </div>
            <div class="providerAddBtn">
                <input type="submit" value="保存" >
                <input type="reset" value="重置"/>
                <input type="button" value="返回" onclick="javascript:history.go(-1);"/>
            </div>
        </form>
    </div>
</div>
</section>
</body>
</html>

